
;(function(){
//this对象指向bus-instance
var admin_skill = {
	//角色类别标识
	league_role:"merchant",
	//上传可做销售的商品
	uploadMarketAbleGoods:function(goods_id){
		var goods = this._getGoods(goods_id);
		var league = this.getLeague();
		var marketGoods = league.marketGoods||(league.marketGoods = []);
		marketGoods.push(goods_id);
		league.save();
	},
	//下架可做销售的商品
	cancleMarketAbleGoods:function(goods_id) {
		var goods = this._getGoods(goods_id);
		var league = this.getLeague();
		var marketGoods = league.marketGoods||[];
		var index = marketGoods.indexOf(goods_id);
		if (index===-1) {
			throwCusError("指定商品非联盟销售商品")
		}
	},
};
var merchant_skill = require("./merchant.skill");

Object.keys(merchant_skill).forEach(function(key){
	admin_skill[key]||(admin_skill[key] = merchant_skill[key]);
});
module.exports = admin_skill;
}());